<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试页面2</title>
</head>
<body>
<!-- 把目标标签插入 -->
    <div id="div1" th:insert="test/commons  :: copyright"></div>
<!-- 把目标标签替换当前标签 -->
    <div id="div2" th:replace="test/commons  :: copyright"></div>
<!-- 把目标标签中的内容包含进来 -->
    <div id="div3" th:include="test/commons  :: copyright"></div>

</body>
</html>